/**
 * 将数据流转换成可以下载的链接，并在页面动态生成一个a标签并模拟点击，启动下载
 * @param {*} blobData 
 * @param {*} fileName 
 */
export default function download(blobData,fileName){
    const download_url = window.URL.createObjectURL(new Blob([blobData],{type: 'application/msword'})); 
    const downloadLink = document.createElement("a");  
    downloadLink.setAttribute("href", download_url);
    downloadLink.setAttribute("download", fileName);    
    document.body.appendChild(downloadLink);
    downloadLink.click();  
    window.URL.revokeObjectURL(download_url);
}